package com.nbsaas.boot.quartz.rest.convert;

import com.nbsaas.boot.quartz.data.entity.SchedulingTask;
import com.nbsaas.boot.quartz.api.domain.response.SchedulingTaskResponse;

import com.nbsaas.boot.utils.BeanDataUtils;
import com.nbsaas.boot.rest.api.Converter;

/**
 * 定时任务-实体对象转化成响应对象
 */

public class SchedulingTaskResponseConvert implements Converter<SchedulingTaskResponse, SchedulingTask> {

    @Override
    public SchedulingTaskResponse convert(SchedulingTask source) {
        SchedulingTaskResponse result = new SchedulingTaskResponse();
        BeanDataUtils.copyProperties(source, result);
        return result;
    }

}

